//
//  BaseModel.swift
//  MagoT
//
//  Created by mac on 2023/12/23.
//

import Foundation


struct BaseModel<T: Codable>: Codable {
    let data : T?
    let errorCode : Int?
    let errorMsg : String?
}

extension BaseModel {
    /// 请求是否成功
    var isSuccess: Bool {  errorCode == 0 }
    
}
